import {View, Text, StyleSheet} from 'react-native';
import React from 'react';
import {SvgXml} from 'react-native-svg';



export default function Children2() {
  return (
    <View style={{marginTop: 20, paddingHorizontal: 10}}>
      <View>
        <Text style={[{fontSize: 18, fontWeight: '900', color: '#000'}]}>
          餐厅信息
        </Text>
        <View
          style={{
            marginHorizontal: 10,
            marginTop: 10,
            borderBottomWidth: 1,
            borderColor: '#DDD',
            paddingBottom: 10,
          }}>
          <Text style={[style.textItem]}>保定理工学院</Text>
          <View
            style={{
              display: 'flex',
              flexDirection: 'row',
              alignItems: 'center',
            }}>
            <SvgXml xml={xml} width="20" height="20" />
            <Text style={[style.textItem]}>地址：河北省保定市莲池区</Text>
          </View>
        </View>
      </View>
      <View style={[style.textItem, {marginHorizontal: 10}]}>
        <View
          style={[
            style.textItem,
            {
              display: 'flex',
              flexDirection: 'row',
              alignItems: 'center',
            },
          ]}>
          <Text style={[style.textItem]}>餐厅名厨：</Text>
          <Text style={[style.textItem, {fontSize: 20, fontWeight: '900'}]}>
            学校食堂
          </Text>
        </View>

        <Text style={[style.textItem]}>社会信用代码：2655222222222</Text>
        <Text style={[style.textItem]}>负责人：张求求</Text>
        <Text style={[style.textItem]}>可容纳就餐人数：111人</Text>
        <Text style={[style.textItem]}>餐厅简介：</Text>
        <Text style={[style.textItem]}>
          介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍介绍
        </Text>
      </View>
    </View>
  );
}

const style = StyleSheet.create({
  textItem: {
    paddingVertical: 4,
    // fontWeight:'900',
    color: '#000',
  },
});

const xml = `
<svg t="1706319212316" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5183" width="200" height="200"><path d="M808.442084 750.473323c-19.128663-12.814864-45.00603-23.89727-76.91374-32.93818-29.814026-8.447393-64.333214-14.988366-101.734032-19.411095 8.888438-13.238512 17.989723-27.236318 27.111474-41.869596 35.539424-57.014528 63.920822-111.757317 84.355223-162.708755 26.170033-65.25419 39.440267-124.84131 39.440267-177.104627 0-34.364669-7.223518-67.695798-21.468964-99.06832-13.684674-30.134321-33.229822-57.155744-58.09207-80.313164-24.708751-23.014156-53.446259-41.069371-85.416392-53.6632-32.979112-12.990872-67.976184-19.578917-104.018052-19.578917-36.042891 0-71.039963 6.588045-104.019075 19.578917-31.968086 12.593829-60.706617 30.649044-85.415368 53.6632-24.862247 23.157419-44.407396 50.178843-58.091046 80.313164-14.246469 31.372521-21.469987 64.703651-21.469987 99.06832 0 52.264341 13.269211 111.850437 39.440267 177.104627 20.434401 50.952462 48.815799 105.695251 84.355223 162.708755 9.123798 14.636349 18.22713 28.637224 27.117614 41.877783-37.374212 4.421706-71.868841 10.960633-101.664448 19.402909-31.906687 9.041934-57.784054 20.123316-76.912717 32.93818-37.658691 25.228591-45.563732 54.501288-45.563732 74.614371s7.90504 49.386804 45.562708 74.615395c19.128663 12.814864 45.00603 23.898293 76.91374 32.93818 59.391668 16.829294 137.445372 26.098401 219.785705 26.098401 82.33931 0 160.394037-9.269108 219.785705-26.098401 31.906687-9.04091 57.784054-20.123316 76.912717-32.93818 37.658691-25.228591 45.562708-54.502311 45.562708-74.615395S846.100776 775.701914 808.442084 750.473323zM511.705799 198.241017c66.177212 0 119.839389 53.661154 119.839389 119.838366 0 66.177212-53.661154 119.838366-119.839389 119.838366-66.176189 0-119.838366-53.661154-119.838366-119.838366C391.866411 251.90217 445.528588 198.241017 511.705799 198.241017zM511.743662 907.575384c-160.768567 0-291.096844-36.930097-291.096844-82.486666 0-37.220716 87.008656-68.678172 206.531843-78.945003 34.139541 46.972824 59.659775 76.699869 61.278645 78.576613l23.248494 26.960025 23.249517-26.960025c1.617847-1.876744 27.140127-31.606859 61.282738-78.582753 119.559003 10.260691 206.602452 41.723264 206.602452 78.951143C802.840506 870.645286 672.511205 907.575384 511.743662 907.575384z" fill="#F8AE00" p-id="5184"></path></svg>`;
